package cn.pojo.dto;

import cn.pojo.HealthOrderPerson;
import cn.pojo.HealthUser;
import cn.pojo.HealthVaccine;
import org.springframework.stereotype.Component;

@Component
public class OrderVaccineUser extends HealthOrderPerson {
    private HealthVaccine vaccine;
    private HealthUser user;

    public OrderVaccineUser() {
    }

    public OrderVaccineUser(HealthVaccine vaccine, HealthUser user) {
        this.vaccine = vaccine;
        this.user = user;
    }

    public HealthVaccine getVaccine() {
        return vaccine;
    }

    public void setVaccine(HealthVaccine vaccine) {
        this.vaccine = vaccine;
    }

    public HealthUser getUser() {
        return user;
    }

    public void setUser(HealthUser user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "OrderVaccineUser{" +
                "vaccine=" + vaccine +
                ", user=" + user +
                '}';
    }
}
